import { takeLatest } from 'redux-saga/effects'
import { fetchBingPhotos } from './bing/saga'
import { fetchPosts } from './posts/saga'

function* rootSaga() {
  yield takeLatest('FETCH_BING_PHOTOS_PENDING', fetchBingPhotos)
  yield takeLatest('FETCH_POSTS_PENDING', fetchPosts)
}

export default rootSaga
